/* $Id: HelpMenu.java 60 2010-02-01 19:54:35Z aaron.day $ */
package org.crazydays.gameplan.view;


import javax.swing.JMenu;
import javax.swing.JMenuItem;

import org.crazydays.gameplan.action.OpenAboutDialog;
import org.crazydays.i18n.Messages;

/**
 * HelpMenu
 */
public class HelpMenu
    extends JMenu
{
    /** serial version uid */
    public final static long serialVersionUID =
        "$Id: HelpMenu.java 60 2010-02-01 19:54:35Z aaron.day $".hashCode();

    /** messages */
    protected final static Messages MESSAGES = Messages.getInstance();

    /** open about dialog */
    protected OpenAboutDialog openAboutDialog;

    /**
     * ViewMenu constructor.
     */
    public HelpMenu()
    {
        super(MESSAGES.format("GamePlan.menu.help"));
    }

    /**
     * Set open about dialog.
     * 
     * @param openAboutDialog OpenAboutDialog
     */
    public void setOpenAboutDialog(OpenAboutDialog openAboutDialog)
    {
        this.openAboutDialog = openAboutDialog;
    }

    /**
     * Initialize menu items.
     */
    protected void initialize()
    {
        add(new JMenuItem(openAboutDialog));
    }
}
